Carbon


GetControlMaximum

Header: Controls.h Carbon status: Supported

Obtains a control’s maximum setting.

SInt16 GetControlMaximum (
    ControlRef theControl
);
theControl

A handle to the control whose maximum value you wish to determine.

function result

The specified control’s maximum setting, which is stored in the contrlMax field of the control structure.0

DISCUSSION

When you create a control, you specify an initial maximum setting either in the control resource or in the max parameter of the function NewControl. You can change the maximum setting by using the function SetControlMaximum.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)